package com.ybkj.daijia.server.service;

import com.ybkj.daijia.server.model.UsuallyDriver;
import java.util.List;

/**
 * @author Shine
 */
public interface UsuallyDriverService {

    /**
     * 保存常用司机信息
     *
     * @param usuallyDriver
     * @return
     */
    public UsuallyDriver insertRecord(UsuallyDriver usuallyDriver);

    /**
     * 根据主键查询司机信息
     *
     * @param id
     * @return
     */
    public UsuallyDriver findOne(Long id);

    /**
     * 根据会员查询未被冻结的常用司机
     *
     * @param memberId
     * @return
     */
    public List<UsuallyDriver> getUsuallyDriver(Long memberId);

    public List<UsuallyDriver> getUsuallyDriver(String phone, Double longitude,
        Double latitude);

    public UsuallyDriver findByDriverAndMember(Long driverId, String phone);

    public void delete(UsuallyDriver usuallyDriver);

}
